###
# Author: Samir Nasher Taher
# License: AGPLv3,  for the license text see ../LICENSE
# Description: Test which measures the time to get a page over HTTP
###

from modules import CONFIG
from modules.Test import Test

import requests as rq

class Test_nginx(Test):
    def getResults(self):
        results = []
        for x in range(CONFIG.MEASUREMENTS):
            resp = rq.get("http://"+self.host)
            results.append(resp.elapsed.microseconds/1000)
        return results
    def getName(self):
       return "nginx test page GET"
